<template>
  <div class="news">News</div>
</template>

<script>
export default {
  name: 'News',
  props:['sex'],
  watch:{
    $route:{
      handler(newVal) {
        console.log(newVal.query);
        console.log(newVal.query.name);
        console.log(newVal.query.age);
        console.log(this.sex);
      },
      immediate:true
    }
  }
}
</script>

<style lang="less" scoped>

</style>
